home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
BORL_TIP
/
TI100
/
TI115.ASC
< prev
next >
Wrap
Text File
|
1991-09-11
|
815b
|
67 lines
PRODUCT : TURBO PASCAL NUMBER : 115
VERSION : ALL
OS : CP/M-80
DATE : April 7, 1986 PAGE : 1/1
TITLE : KAYPRO - EVER-SPINNING DISK DRIVE
Place this procedure into your program and call it when you would
like your disk drives to stop spinning.
{ This works for Kaypro 2, 4, 1984 or later }
procedure MotorOff;
const
system = $14; {Kaypro System port}
begin
port[system] :=port[system] and $EF; {Turn off motor}
end;
{ This works for the original Kaypro 2 and 4 }
procedure MotorOff;
const
system = $1C;
begin
port[system] := port[system] or $140;
end;